import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import Product from '@/components/Product'
import Videos from '@/components/Videos'
import Intro from '@/components/Intro'
import Action from '@/components/Action'
import Special from '@/components/Special'
import Diff from '@/components/Diff'
import Team from '@/components/Team'
import Activity from '@/components/Activity'
import Contact from '@/components/Contact'
import News from '@/components/News'
import NewsDetail from '@/components/NewsDetail'
import ProVideo from '@/components/ProidVideo'
import ActivityDetail from '@/components/ActivityDetail'
import NewsType from '@/components/NewsType'

Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [{
        path: '/',
        name: 'Index',
        component: Index
    }, {
        path: '/product',
        name: 'Product',
        component: Product,
        redirect: '/product/videos',
        children: [{
            path: '/product/videos',
            name: 'Videos',
            component: Videos
        }, {
            path: '/product/intro',
            name: 'Intro',
            component: Intro
        }, {
            path: '/product/action',
            name: 'Action',
            component: Action
        }, {
            path: '/product/special',
            name: 'Special',
            component: Special
        }, {
            path: '/product/diff',
            name: 'Diff',
            component: Diff
        }]
    }, {
        path: '/activity',
        name: 'Activity',
        component: Activity
    }, {
        path: '/activityDetail',
        name: 'ActivityDetail',
        component: ActivityDetail
    }, {
        path: '/news',
        name: 'News',
        component: News
    }, {
        path: '/newsType',
        name: 'NewsType',
        component: NewsType
    }, {
        path: '/newsDetail',
        name: 'NewsDetail',
        component: NewsDetail
    }, {
        path: '/team',
        name: 'Team',
        component: Team
    }, {
        path: '/contact',
        name: 'Contact',
        component: Contact
    }, {
        path: '/ProVideo',
        name: 'ProVideo',
        component: ProVideo
    }, {
        path: '*',
        name: '404',
        component: Index
    }]
})
